//
//  TopMenusView.h
//  SUZHOUBANK
//
//  Created by apple on 16/4/12.
//  Copyright © 2016年 RuiFeng-WGCC. All rights reserved.
//

#import <UIKit/UIKit.h>
@class TopMenusView;

@protocol TopMenusViewDelegate <NSObject>

@required
- (void)topMenusView:(TopMenusView *)topMenusView didSelectedItemIndexPathRow:(NSInteger)indexPathRow;

@end

@interface TopMenusView : UIView
@property (nonatomic,copy)NSArray *dataSource;

/**
 *
 *  @param frame      顶部菜单栏的位置
 *  @param dataSource 配置菜单栏中item的数据源,传入存有 itemName 字符串的数组
 *
 *  @return
 */
- (instancetype)initWithFrame:(CGRect)frame dataSource:(NSArray *)dataSource;

@property (nonatomic,weak) id <TopMenusViewDelegate> delegate;
@end
